<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 引入ElementUI样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <!-- 引入ElementUI组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>

</head>
<body>
    <div id="app">
        <div class="block">
            <span class="demonstration">完整功能</span>
            <!--SizeChange:每页条数-->
            <el-pagination

                    @size-change="handleSizeChange"
                    @current-change="handleCurrentChange"
                    :current-page="currentPage2"
                    :page-sizes="[10, 20, 30, 40]"
                    :page-size="10"
                    layout="total, sizes, prev, pager, next, jumper"
                    :total="400">
            </el-pagination>
        </div>

        <script>

            new Vue({
                el:'#app',
                data:{
                   /* return:{
                        currentPage1: 5,
                        currentPage2: 5,
                        currentPage3: 5,
                        currentPage4: 4
                    }*/
                },
                methods:{
                    handleCurrentChange(page){
                        alert(page)
                    }
                }

            });
        </script>
    </div>


</body>
</html>